package processing.test.mechaapp;
//game;

//simple class node that is used by the molecule class stack.
public class AtomNode{
	private Atom element;
	private AtomNode next;
	private AtomNode prev;
	
	public AtomNode(Atom elem){
		element = elem;
		next = prev = null;
		
	}
	
	public AtomNode getPrev(){
		return prev;
	}
	
	public AtomNode getNext(){
		return next;
	}
	
	public void setNext(AtomNode node){
		next = node;
	}
	
	public void setPrev(AtomNode node){
		prev = node;
	}
	
	public Atom getElement(){
		return element;
	}
	
	public void setElement(Atom atom){
		element = atom;
	}

}
